<%--
  Created by IntelliJ IDEA.
  User: Mklaus
  Date: 15/8/16
  Time: 下午10:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
  <title>列出物资</title>
</head>
<body>
<c:forEach items="${goodses}" var="goods">
  ${goods.goodsName}
  ${goods.type}
  <form action="/goods" method="post" >
    <!-- 注意下面这一行写法，它是调用method=delete的方法 -->
    <input type="hidden" name="_method" value="delete" />
    <input type="hidden" value="${goods.id}" name="goodsId" />
    <input type="submit" value="删除">
  </form>
  <hr>
</c:forEach>
</body>
</html>
